@import './variable';
@import './mixins';

html,
body {
  background: $bgColor;
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

ul, li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.red-num {
  color: red;
}

.emphasis {
  font-weight: bold;
}

/* --------------地图页面数据概览样式 start-------------------- */
.map-overall-container {
  display: inline-block;
  margin-left: 20px;
  font-size: 14px;
}


/* --------------地图页面数据概览样式 end-------------------- */

/* ------弹窗样式------start----- */
.el-message-box__wrapper{
    .el-message-box{
      display: inline-block;
      width: 420px;
      padding-bottom: 10px;
      vertical-align: middle;
      background-color: #fff;
      border-radius: 4px;
      border: 1px solid #ebeef5;
      font-size: 18px;
      -webkit-box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
      box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
      text-align: left;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
    .el-message-box__title{
      color: #333333 !important;
    }
    .el-message-box__content {
      color: #333333 !important;
    }
  }
}

/* ------弹窗样式------end----- */

/* ------重置表单各项高度------start----- */
.el-date-editor  {
  .el-range-separator, 
  .el-range__icon,
  .el-range__close-icon {
    line-height: 22px;
    width: 25px;
    font-size: 14px;
  }
}

.el-form-item {
  margin-bottom: 15px;
}

.el-form-item__content,
.el-form-item__label {
  line-height: 30px;
}

.el-input__inner {
  height: 30px;
}
.el-input--mini {
  font-size: 12px;
}

.el-button--mini{
  padding: 7px 15px;
}

/* ------重置表单各项高度------end----- */

.el-table {
  td {
    padding: 5px 0;
  }
  th {
    padding: 8px 0;
  }
}


/**
 * transition slide 动画
 */

.slide-enter-active,
.slide-leave-active {
  transition: all .3s linear;
}

.slide-enter,
.slide-leave-to {
  transform: translateX(400px);
}

.slideleft-enter-active,
.slideleft-leave-active {
  transition: all .5s linear;
  left: 0;
}

.slideleft-enter,
.slideleft-leave-to {
  transform: translateX(-200px);
  left: -200px;
}

.clearfix:before,.clearfix:after{
  content: "";
  display: table;
}
.clearfix:after{
  clear: both;
}

/* ------重置高德地图样式------start----- */
.amap-container{
  background: $bgColor;
}
/* 高德地图默认背景色 */
.amap-maps {
  background: black;
}
  
/* 高德地图弹框样式 */
.amap-info-contentContainer.bottom-left,
.amap-info-contentContainer.bottom-center,
.amap-info-contentContainer.bottom-right{
  padding-bottom: 8px;
}

/*高德地图搜索框样式*/
.amap-sug-result{
  background-color:rgba(45, 55, 68, 0.8);
  border: 1px solid #4f6077;
}

/*地图自带信息弹窗样式修改*/
.amap-content-body {
  background: rgba(45, 55, 68, 0.8);
  border: 1px solid #4f6077;
  color: #efefef;
}
.amap-lib-infowindow {
  background-color: transparent;
}

/* ------重置高德地图样式------end----- */

/* ------重置饿了么下拉框样式------start----- */
/* .el-select-dropdown{
  background-color: rgba(45, 55, 68, 0.8);
  border: 1px solid #4f6077;
  z-index: 2000 !important;
  .el-select-dropdown__list{
    // background-color: rgba(0, 21, 62, 0.5);
    >li{
      color: #fff;
      font-size: 14px;
      &.el-select-dropdown__item.hover{
        background-color: rgba(63, 80, 101, 0.8);
      }
    }
    .el-select-dropdown__item{
      padding: 0 20px;
      height: 34px;
      line-height: 34px;
    }
  }
  >.popper__arrow{
    border-bottom-color: #4f6077!important;
    &::after{
      display: none;
      border-bottom-color: #4f6077!important;
    }
  }
} */
// .el-select-dropdown{
//   background-color: rgba(45, 55, 68, 0.8);
//   border: 1px solid #4f6077;
//   z-index: 2000 !important;
//   .el-select-dropdown__list{
//     // background-color: rgba(0, 21, 62, 0.5);
//     >li{
//       color: #fff;
//       font-size: 14px;
//       &.el-select-dropdown__item.hover{
//         background-color: rgba(63, 80, 101, 0.8);
//       }
//     }
//     .el-select-dropdown__item{
//       padding: 0 20px;
//       height: 34px;
//       line-height: 34px;
//     }
//   }
//   >.popper__arrow{
//     border-bottom-color: #4f6077!important;
//     &::after{
//       display: none;
//       border-bottom-color: #4f6077!important;
//     }
//   }
// }

.el-popper{
  margin-top: 12px;
}
// 时间下拉框
/* .el-picker-panel {
  background-color: rgba(45, 55, 68, 1);
  border: 1px solid #4f6077;
  border-radius: 0;
  z-index: 2000 !important;
  .el-picker-panel__body-wrapper {
    .el-date-range-picker__content.is-left {
      border-right: 1px solid #4f6077;
    }
    .el-date-table {
      th {
        border-bottom: solid 1px #4f6077;
      }
      td.in-range div {
        background-color: #1b222c;
      }
      td.end-date span,td.start-date span {
        background-color: #2d3744;
      }
      td.disabled div{
        background-color: #2d3744
      }
    }
    .el-picker-panel__icon-btn {
      color: #4f6077;
    }
  }
  >.popper__arrow{
    border-bottom-color: #4f6077!important;
    &::after{
      display: none;
      border-bottom-color: #4f6077!important;
    }
  }
} */
.el-popper[x-placement^=top] .popper__arrow{
  border-top-color: #4f6077!important;
}
/* ------重置饿了么下拉框样式------end----- */

/* ------重置弹出框表单样式------start----- */
.el-dialog {
  width:35%;
  .el-dialog__header {
    border-bottom: 1px solid #c9c7c7;
  }
  .el-dialog__body {
    .el-input__inner {
      height: 35px;
      line-height: 35px;
    }
    .el-select {
      width: 100%;
    }
  }
}
.el-message-box__wrapper {
  .el-message-box__container {
    color: #333333;
  }
}

/* ------重置弹出框表单样式------end----- */

/* 自定义 el-message 头部提示框样式 */
.el-message--success {
  border: 1px solid #67C23A;
}
.el-message--error {
  border: 1px solid red;
}
.el-message--info {
  border: 1px solid #22a5ff;
  .el-icon-info {
    color: #22a5ff;
  }
}


.el-message-box{
  padding-bottom: 10px;
  border: none;
  font-size: 18px;
  background: rgba(40, 52, 62, 1);
  border: 1px solid #234d70;
  .el-message-box__title{
    color: #fff;
  }
  .el-message-box__content{
    padding: 10px 15px;
    font-size: 14px;
    color: #fff;
  }
  .el-message-box__status{
    font-size: 24px!important;
  }
  .el-message-box__btns{
    padding: 5px 15px 0;
    .el-button--small{
      padding: 9px 15px;
      font-size: 12px;
      border-radius: 0;
    }
  }
}

.el-date-editor .el-range-input,
.el-date-editor .el-range-separator{
  font-size: 14px;
}

.el-date-editor .el-range__icon{
  font-size: 14px;
  margin-left: -5px;
}

.el-range-editor.el-input__inner{
  padding: 3px 10px;
}

.el-button{
  font-size: 14px;
}

.el-button [class*=el-icon-]+span{
  margin-left: 5px;
}

.el-select{
  .el-input__inner{
    line-height: 40px;
    padding: 0 15px;
    padding-right: 35px;
  }
  .el-input{
    .el-select__caret{
      font-size: 14px;
    }
  } 
}
.el-input{
  font-size: 14px;
}
.el-input__icon{
  width: 25px;
}
.el-message--error, .el-message--success, .el-message--info, .el-message--warning {
  z-index: 2020 !important;
}

/***/

.el-tooltip__popper.is-dark{
  max-width: 250px;
}